﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Tesis2.Models
{
    public class ProductoXDano
    {
        [DisplayName("Código ProductoXDano")]
        [Key]
        public int ProductoXDanoID { get; set; }

        [DisplayName("Cantidad")]
        public int Cantidad { get; set; }

        //foreign keys
        [DisplayName("Producto")]
        public int ProductoDanoID { get; set; }
        public virtual Producto ProductoDano { get; set; }

        [DisplayName("Daño")]
        public int DanoProductoID { get; set; }
        public virtual Dano DanoProducto { get; set; }

    }
}